package com.sheng.bees.modular.system.model;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * app版本控制
 * </p>
 *
 * @author Sheng
 * @since 2018-07-13
 */
@TableName("app_version")
public class AppVersion extends Model<AppVersion> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 版本号
     */
    private Integer version;
    /**
     * apk路径
     */
    @TableField("apk_file")
    private Integer apkFile;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public Integer getApkFile() {
        return apkFile;
    }

    public void setApkFile(Integer apkFile) {
        this.apkFile = apkFile;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "AppVersion{" +
        "id=" + id +
        ", version=" + version +
        ", apkFile=" + apkFile +
        "}";
    }
}
